##########################################################
# Script: IRC AuthServ Auth           #	                 #
# Version: 1.0.0                      #	 #  ####   ###	 #
# Author: MadaNetwork & Community4WCF #	 #  #  #  #		 #
# Web:    www.mada-network.de         #	 #  ###	  #		 #
# IRC: irc.mada-network.de:6667       #	 #  #   #  ###   #
##########################################################
# This script will automatically  # Feel free to email   #
# auth your bot's nick to         # me with suggestions  #
# authserv. It works on all       # or bugs.             #
# services versions with classic  # Email:				 #
# command for auth.               # *@*.de			     #
##########################################################

# To auth your Bot, you must have rights OP and write in the Channel: ?authBOTNICK

###
# Configuration starts here
###

# Bot nickname - set the nickname you use. 
#set botnick "BOTNICK"

#
# Bot's nickname & password

set accountnick "AccountNick"
set accountpassword "AccountPW"

#
# The (Services-) Server with Authserv:

set ircserver "services.mada-network.de"

###
# Configuration ends here
###

#### Bot Auth ####
bind pub o|o ?auth$accountnick init:server
proc init:server { nick host handle channel text } {
  putquick "PRIVMSG AuthServ@$ircserver :AUTH $accountnick $accountpassword"
  putquick "MODE $::botnick +x"
}